//
//  LGTRWZTaskFooterView.swift
//  KJLGT
//
//  Created by jenkin on 2019/8/20.
//  Copyright © 2019年 jenkin. All rights reserved.
//

import UIKit

class LGTRWZTaskFooterView: UITableViewHeaderFooterView {
    
    var label:UILabel?
    
    override init(reuseIdentifier: String?) {
        super.init(reuseIdentifier: reuseIdentifier)
        
        self.contentView.backgroundColor = UIColor.white
        let imageView:UIImageView = LGTViewCreateUtil.share.createImageView(image: "nonewsyet")
        self.addSubview(imageView)
        imageView.snp.makeConstraints { (make) in
            make.width.equalTo(SizeFitFloat(111))
            make.height.equalTo(SizeFitFloat(66))
            make.top.equalTo(SizeFitFloat(47))
            make.centerX.equalTo(self)
        }
        
        self.label = LGTViewCreateUtil.share.createLabel(textAlignment: NSTextAlignment.center, textColor: TextColor, fontSize: SizeFitFloat(12), text: "很抱歉\n您暂时还没有发布任何任务")
        self.label!.numberOfLines = 0
        self.addSubview(self.label!)
        self.label!.snp.makeConstraints { (make) in
            make.width.equalTo(SizeFitFloat(160))
            make.top.equalTo(imageView.snp_bottomMargin).offset(SizeFitFloat(47))
            make.centerX.equalTo(self)
        }
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
